package com.brother.log;


import java.net.URL;

import org.apache.log4j.DailyRollingFileAppender;



public class CustomDailyRollingFileAppender extends DailyRollingFileAppender {

	@Override
	public void setFile(String file) {
		 URL in = CustomDailyRollingFileAppender.class.getResource("/log4j.properties");
		 String path = java.net.URLDecoder.decode(in.getFile());
		 path = path.substring(0, path.indexOf("log4j.properties"));
		super.setFile(path+file);
	}

	
	
}
